//
//  YAYIMyPatientItem.m
//  yayi-医生版
//
//  Created by Veer on 16/4/27.
//  Copyright © 2016年 Veer. All rights reserved.
//

#import "YAYIMyPatientItem.h"

@implementation YAYIMyPatientItem

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
}

- (void)setClientname:(NSString *)clientname
{
    _clientname = clientname;
    
    _clientname = clientname;
    if (clientname) {
        _pinyin = clientname.pinyin;
    }
}

//实现NSCopying协议的方法，来使此类具有copy功能
-(instancetype)copyWithZone:(NSZone *)zone
{
    YAYIMyPatientItem *newItem = [[YAYIMyPatientItem allocWithZone:zone] init];
    
    newItem.isLocalImage = self.isSelected;
    newItem.clientid = self.clientid;
    newItem.clientname = self.clientname;
    newItem.avatar = self.avatar;
    newItem.pinyin = self.pinyin;
    newItem.dcid = self.dcid;
    
    return newItem;
}

@end
